<?php

namespace app\index\controller;

use think\Db;
class Index {

    public function index() {
        return '33333-666';
    }

    /**
     * http://www.thinkphp.org/index.php/index/index/test
     * @return string
     define('APP_PATH', 'F:/phpStudy/PHPTutorial/WWW/thinkphp/application');
     define('RPC_RUN', true);
     class server{
	public function wsq($action){
		static $import = true;
	    $_REQUEST['argv_rpc'] = $action;
	    if($import){
	       $path = 'F:/phpStudy/PHPTutorial/WWW/thinkphp/thinkphp/base.php';
	       include $path;
	    }
	    $import = false;
	    $app = new \think\App();
	    $data = $app->run();
	    return $data;
	}
    }
     */
    public function test() {
        return '王松青';
    }
    
    public function mydata(){
        $data = Db::name('manage_user')->where('admin_id',1)->find();
        return json_encode($data);
    }

}
